package com.lzc.tlmail.cart.tlmailcart.vo;

import com.sun.org.apache.bcel.internal.generic.NEW;

import java.math.BigDecimal;
import java.util.List;

/**
 * 购物车商品详情
 * @author lzc
 * @create 2020-10-18 15:17
 */
public class CartItemVo {

    private Long skuId;

    private Boolean checked=true;

    private String defaultIamge;

    private String skuTitle;

    private List<String> attrs;

    private BigDecimal price;

    private Integer count;

    private BigDecimal totalPrice;


    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public String getDefaultIamge() {
        return defaultIamge;
    }

    public void setDefaultIamge(String defaultIamge) {
        this.defaultIamge = defaultIamge;
    }

    public String getSkuTitle() {
        return skuTitle;
    }

    public void setSkuTitle(String skuTitle) {
        this.skuTitle = skuTitle;
    }

    public List<String> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<String> attrs) {
        this.attrs = attrs;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getTotalPrice() {
        totalPrice = this.price.multiply(new BigDecimal(""+this.count));
        return totalPrice;
    }


}
